package com.xfcy.blog.common.enums;

/**
 *
 * @author 晓风残月Lx
 * @date 2023/4/18 17:48
 */
public enum YesOrNoEnum {

    YES(1, "是"),

    NO(0, "否");

    YesOrNoEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    //定义私有方法，获取枚举值
    private final Integer code;
    private final String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
